﻿using System.Windows.Forms;

namespace DimsMapper
{
    class RenderPanel : Panel
    {
        public void EnableAllPaintingInWmPaint()
        {
           this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
           this.UpdateStyles();
        }

        public RenderPanel()
        {
            EnableAllPaintingInWmPaint();
        }

        //protected override void OnPaint(PaintEventArgs e)
        //{
        //    //base.OnPaint(e);
        //}

        protected override void OnPaintBackground(PaintEventArgs e)
        {
            //base.OnPaintBackground(e);
        }
    }
}
